#include <STC15F2K60S2.H>

void Delay1ms()		//@12.000MHz
{
	unsigned char i, j;

	i = 12;
	j = 169;
	do
	{
		while (--j);
	} while (--i);
}


// 延时子函数
void delay(unsigned int dtime )
{
	int i=0;
	int j=0;
	for(j=0;j<dtime;j++)
	{
		Delay1ms();
	}
}

int main()
{
	
	while(1)
	{
		P00 = 1;  
		delay(1000);
	  P00 = 0;  
		delay(1000);
	}
	
	return 0;
}

